package com.wxzz.elearing.course.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 学习计划单元
 */
@Data
public class StudyPlanUnit extends BaseEntity {

    @ApiModelProperty(value = "单元名称")
    private String unitName;

    @ApiModelProperty(value = "单元介绍")
    private String unitDetail;

    @ApiModelProperty(value = "学习计划id")
    private Long studyPlanId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "状态 0-未完成 1-已完成")
    private Integer status;

    @TableField(exist = false)
    @ApiModelProperty(value = "课程列表")
    private List<Curriculum> curriculumList;

    @TableField(exist = false)
    @ApiModelProperty(value = "课程id集合")
    private List<Long> curriculumIds;

}
